/* main.cpp, Written by, Sohail Qayum Malik[sqm@cyberian.pk 
   An example application should be used as an effort to document argsvCPP  */

#include "main.h"   
   
int main(int argc, char *argv[]) {

   int ret = 0;

   argument<arg_history>::pointer ptr;
   
   try {
   
       ptr = argument<arg_history>::NewE(argc, argv, COMMANDS);
       ret = init(argv, COMMANDS, ptr);   
   }
   catch(args_exception &e) {
   
      std::cout<<e.what();
	  ret = 1;	  
   }

   return ret;   
}